﻿using Fake_Shop_WebApi.ValidationAttributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Fake_Shop_WebApi.Dtos
{


    public class TouristRouteForCartionDto: TouristRouteForManipulationDto//:IValidatableObject
    {

        [MaxLength(1500)]
        [Required(ErrorMessage = "新增失败")]
        public override string Description { get; set; }

        //public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
        //{
        //    if(Title == Description)
        //    {
        //        yield return new ValidationResult("Title 和 Description 的值不能一样",new[] { "TouristRouteForCartionDto" });
        //    }
        //}
    }
}
